package com.mtwp.dfs.domain.region;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/*
行政区域县区信息表
 */

@Data
@Entity
@Table(name = "dfs_areas")
public class Area {

    /**
     * 更新时间
     */
    @Column(name = "updateTime")
    private Date updateTime;

    /**
     * 创建时间
     */
    @Column(name = "createTime")
    private Date createTime;

    /**
     * 编号
     */
    @Id
    private Integer id;


    private String areaid;
    private String area;

    @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
    @JoinColumn(name = "cityid")
    private City city;
}
